package com.inspur.demo.feign;

import com.inspur.config.FeignNoHystrixConfigure;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// 关闭配置会导致spring-cloud-producer3所有接口都被关闭Hystrix
@FeignClient(value = "spring-cloud-producer3", configuration = FeignNoHystrixConfigure.class)
public interface FeignTestClient4 {

    @GetMapping("/feign/get/{id}")
    String get(@PathVariable("id") String id);
}
